package com.wxp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wxp.dao.DaoSupport;
import com.wxp.service.ConstructionService;
import com.wxp.service.MaterialService;
import com.wxp.service.StatisticsService;
import com.wxp.util.IData;

@Service
public class MaterialServiceImpl implements MaterialService {

	@Resource(name = "daoSupport")
	private DaoSupport dao;

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> fetchMaterial(IData param) throws Exception {
		return (List<IData>) dao.findForList("MaterialMapper.fetchMaterial", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> fetchStatisticDate(IData param) throws Exception {
		return (List<IData>) dao.findForList("MaterialMapper.fetchStatisticDate", param);
	}

}
